 

import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/stm/swstinternetticketequipment/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/stm/swstinternetticketequipment',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/stm/swstinternetticketequipment/details/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/stm/swstinternetticketequipment/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/stm/swstinternetticketequipment',
    method: 'put',
    data: obj
  })
}

export function approvalObj(obj) {
  return request({
    url: '/stm/swstinternetticketequipment/modify/approval/status',
    method: 'put',
    params: obj
  })
}

export function delBatch(id) {
  return request({
    url: '/stm/swstinternetticketequipment/batchDelete' ,
    method: 'delete',
    data:id
  })
}

//查看互联网售票机数据录入记录
export function queryPastRecords(param){
  return request({
    url: '/stm/swstinternetticketequipment/getLogById/'+param.id,
    method: 'get'
  })
}

